package sitemaps;

/**
 * I'm not sure, there should be a class already doing this.
 */
public class SlashAdder {
	private static final char SLASH_CHAR = '/';
	public String completeSlash(String baseUrl) {
		if(SLASH_CHAR == baseUrl.charAt(baseUrl.length()-1)) {
			return baseUrl;
		} else {
			return baseUrl + SLASH_CHAR;
		}
	}
}
